package com.nlelpct.manage;

import com.nlelpct.manage.utils.Sm4Utils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author xiaoma
 */
@EnableFeignClients
@Configuration
@SpringBootApplication
public class SystemOrganizationManageApplication {

    @Value(("${encryptionKey}"))
    public String key;

    @Bean
    public Sm4Utils sm4Utils() {
        return new Sm4Utils(key);
    }

    public static void main(String[] args) {
        SpringApplication.run(SystemOrganizationManageApplication.class, args);
    }

}
